﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013FF RID: 5119
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGetDataScRsp : IMessage<TrainPartyGetDataScRsp>, IMessage, IEquatable<TrainPartyGetDataScRsp>, IDeepCloneable<TrainPartyGetDataScRsp>, IBufferMessage
	{
		// Token: 0x17004090 RID: 16528
		// (get) Token: 0x0600E548 RID: 58696 RVA: 0x002651D1 File Offset: 0x002633D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGetDataScRsp> Parser
		{
			get
			{
				return TrainPartyGetDataScRsp._parser;
			}
		}

		// Token: 0x17004091 RID: 16529
		// (get) Token: 0x0600E549 RID: 58697 RVA: 0x002651D8 File Offset: 0x002633D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGetDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004092 RID: 16530
		// (get) Token: 0x0600E54A RID: 58698 RVA: 0x002651EA File Offset: 0x002633EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGetDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600E54B RID: 58699 RVA: 0x002651F1 File Offset: 0x002633F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGetDataScRsp()
		{
		}

		// Token: 0x0600E54C RID: 58700 RVA: 0x002651FC File Offset: 0x002633FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGetDataScRsp(TrainPartyGetDataScRsp other) : this()
		{
			this.trainPartyData_ = ((other.trainPartyData_ != null) ? other.trainPartyData_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E54D RID: 58701 RVA: 0x00265248 File Offset: 0x00263448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGetDataScRsp Clone()
		{
			return new TrainPartyGetDataScRsp(this);
		}

		// Token: 0x17004093 RID: 16531
		// (get) Token: 0x0600E54E RID: 58702 RVA: 0x00265250 File Offset: 0x00263450
		// (set) Token: 0x0600E54F RID: 58703 RVA: 0x00265258 File Offset: 0x00263458
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyData TrainPartyData
		{
			get
			{
				return this.trainPartyData_;
			}
			set
			{
				this.trainPartyData_ = value;
			}
		}

		// Token: 0x17004094 RID: 16532
		// (get) Token: 0x0600E550 RID: 58704 RVA: 0x00265261 File Offset: 0x00263461
		// (set) Token: 0x0600E551 RID: 58705 RVA: 0x00265269 File Offset: 0x00263469
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600E552 RID: 58706 RVA: 0x00265272 File Offset: 0x00263472
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGetDataScRsp);
		}

		// Token: 0x0600E553 RID: 58707 RVA: 0x00265280 File Offset: 0x00263480
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGetDataScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.TrainPartyData, other.TrainPartyData) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E554 RID: 58708 RVA: 0x002652D0 File Offset: 0x002634D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.trainPartyData_ != null)
			{
				num ^= this.TrainPartyData.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E555 RID: 58709 RVA: 0x00265325 File Offset: 0x00263525
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E556 RID: 58710 RVA: 0x0026532D File Offset: 0x0026352D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E557 RID: 58711 RVA: 0x00265338 File Offset: 0x00263538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.trainPartyData_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.TrainPartyData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E558 RID: 58712 RVA: 0x00265394 File Offset: 0x00263594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.trainPartyData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TrainPartyData);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E559 RID: 58713 RVA: 0x002653EC File Offset: 0x002635EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGetDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.trainPartyData_ != null)
			{
				if (this.trainPartyData_ == null)
				{
					this.TrainPartyData = new TrainPartyData();
				}
				this.TrainPartyData.MergeFrom(other.TrainPartyData);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E55A RID: 58714 RVA: 0x00265454 File Offset: 0x00263654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E55B RID: 58715 RVA: 0x00265460 File Offset: 0x00263660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.trainPartyData_ == null)
						{
							this.TrainPartyData = new TrainPartyData();
						}
						input.ReadMessage(this.TrainPartyData);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005AB8 RID: 23224
		private static readonly MessageParser<TrainPartyGetDataScRsp> _parser = new MessageParser<TrainPartyGetDataScRsp>(() => new TrainPartyGetDataScRsp());

		// Token: 0x04005AB9 RID: 23225
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005ABA RID: 23226
		public const int TrainPartyDataFieldNumber = 8;

		// Token: 0x04005ABB RID: 23227
		private TrainPartyData trainPartyData_;

		// Token: 0x04005ABC RID: 23228
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04005ABD RID: 23229
		private uint retcode_;
	}
}
